package com.chagee.channel.api.bo.lark;

import com.chagee.channel.api.enums.LarkApprovalNodeTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.List;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 审批流程预览
 *
 * @author: chang.jiawei
 * @date: 2024/01/17
 */
@Data
@Accessors(chain = true)
public class ApprovalPreviewNodeBO implements Serializable {

    private static final long serialVersionUID = -4270355725457336331L;

    @ApiModelProperty("审批人id列表")
    private List<String> userIdList;

    @ApiModelProperty("审批结束抄送人id列表")
    private List<String> endCcIdList;

    @ApiModelProperty("审核节点id")
    private String nodeId;

    @ApiModelProperty("审核节点名称")
    private String nodeName;

    @ApiModelProperty("审核类型")
    private LarkApprovalNodeTypeEnum nodeType;

    @ApiModelProperty("用户自定义节点id")
    private String customNodeId;

    @ApiModelProperty("评论内容")
    private String comment;

    @ApiModelProperty("审批人是否为空，若为空，则user_id_list为兜底审批人id列表")
    private boolean isEmptyLogic;

    @ApiModelProperty("是否发起人自选节点")
    private boolean isApproverTypeFree;

    @ApiModelProperty("节点是否支持抄送人自选")
    private boolean hasCcTypeFree;

}
